var e = require;
var t = module;
var o = exports;
var Adv_skd=require("./Adv_skd");
Object.defineProperty(o, "__esModule", {value: !0});
var n = e("NotifyEventType"),
    a = e("ModuleUI"),
    i = e("dower_node_item"),
    r = cc._decorator,
    s = r.ccclass,
    l = r.property,
    c = (function (e) {
        function t() {
            var t = (null !== e && e.apply(this, arguments)) || this;
            return (t.dower_view_content = null), (t.dower_node_item = null), t;
        }
        return (
            __extends(t, e),

            (t.prototype.onDisable = function () {

                Adv_skd.default.instance.hideBannerAd();
                Adv_skd.default.instance.hideGridAdLeft();
                Adv_skd.default.instance.hideGridAdRight();
                Adv_skd.default.instance.hideGridAdTop();
                Adv_skd.default.instance.hideGridAdLeftOne();
                Adv_skd.default.instance.hideGridAdRightOne();
                Adv_skd.default.instance.hideGridAdButtom();

            }),

            (t.prototype.initView = function () {

                Adv_skd.default.instance.hideBannerAd();
                Adv_skd.default.instance.hideGridAdLeft();
                Adv_skd.default.instance.hideGridAdRight();
                Adv_skd.default.instance.hideGridAdTop();
                Adv_skd.default.instance.hideGridAdLeftOne();
                Adv_skd.default.instance.hideGridAdRightOne();
                Adv_skd.default.instance.hideGridAdButtom();
                Adv_skd.default.instance.showGridAdLeft();
                Adv_skd.default.instance.showGridAdRight();
                Adv_skd.default.instance.showInterstitialAd();

                e.prototype.initView.call(this), this.showDowerInfo();
            }),
            (t.prototype.OnClick = function (t) {
                switch ((e.prototype.OnClick.call(this, t), t.node.name)) {
                    case "back_btn":
                        this.emitEvent(n.default.SEND_BOX_PORTAL_INFO, !0), this.node.destroy();
                }
            }),
            (t.prototype.showDowerInfo = function () {
                for (var e = 0; e < 5; e++) {
                    var t = cc.instantiate(this.dower_node_item);
                    (t.active = !0), t.getComponent(i.default).showDowerInfo(e), t.setParent(this.dower_view_content);
                }
            }),
            __decorate([l(cc.Node)], t.prototype, "dower_view_content", void 0),
            __decorate([l(cc.Node)], t.prototype, "dower_node_item", void 0),
            __decorate([s], t)
        );
    })(a.default);
o.default = c;
